<?php

return [
	// 正常
	'ok' => ['code' => 200, 'message' => '操作成功'],

	// 通用错误10xx
	'fail' => ['code' => 1000, 'message' => '操作失败'],

	// 数据校验类错误11xx
	'validate_fail' => ['code' => 1100, 'message' => '请检查资料是否填写正确'],

	// 认证相关错误,12xx
	'unauthorized'  => ['code' => 1200, 'message' => '用户未登录'],
	'authorized'    => ['code' => 1201, 'message' => '用户已登录'],
	'login_fail'    => ['code' => 1202, 'message' => '帐号不存在或密码错误'],
    'unbind_weixin' => ['code'=> 1203,  'message' => '帐号未绑定微信'],

	// 资源类错误14xx
    'not_found'             => ['code' => 1400, 'message' => '未找到该记录'],
    'hotel_order_not_found' => ['code' => 1401, 'message' => '未找到酒店预订记录'],

	// 权限类错误15xx
	'permission_deny' => ['code' => 1500, 'message' => '权限受限'],

    // 支付类错误16xx
    'wx_order_err'         => ['code' => 1600, 'message' => '微信支付失败'],
    'wx_order_un_pay'      => ['code' => 1601, 'message' => '订单未支付'],
    'has_reseipt'          => ['code' => 1602, 'message' => '您已开票'],
    'meeting_end'          => ['code' => 1603, 'message' => '会议已结束,支付失败'],
    'meeting_member_limit' => ['code' => 1604, 'message' =>'抱歉,会议票据已售罄'],
    'ticket_used'          => ['code' => 1605, 'message' => '该票据已使用'],
    'ticket_unavailable'   => ['code' => 1606, 'message' =>'该票据不可用'],
    'hotel_repeat_order'   => ['code' => 1607, 'message' => '该会议已经预订酒店，请勿重复操作'],
];